import request from '@/utils/request'

export const getMemberyAll = (params) => {
    return request({
        url: '/owners/member',
        params
      })
}
//所属楼栋
export const getHouseList = (params) => {
    return request({
        url: '/house/building?community_code='+params,
        
      })
}

//所属房产
export const getHouse = (params) => {
    return request({
        url: '/house/index?building_code='+params,
      })
}

//提交
export const addHouse = (data) => {
    return request({
        method:'post',
        url: '/owners/member',
        data
      })
}

//回显
export const reviewHouse = (id) => {
    return request({
        url: '/owners/member/'+id,
      })
}

///修改
export const editHouse = (data) => {
    return request({
        method:'put',
        url: '/owners/member/'+data.id,
        data
      })
}

//删除
export const delHouse = (id) => {
    return request({
        method:'delete',
        url: '/owners/member/'+ id,
      })
}